<?php

namespace Lambq\Http;

use Illuminate\Support\ServiceProvider;
use Lambq\Http\Http;
class HttpServiceProvider extends ServiceProvider
{
    public function boot()
    {
        $this->mergeConfigFrom(__DIR__.'/config/laraHttp.php','laraHttp');
        $this->publishes([
            __DIR__.'/config/laraHttp.php' => config_path('laraHttp.php'),
        ]);
    }

    public function register()
    {
        $this->app->singleton('laraHttp',function (){
            return new Http();
        });
    }

    /**
     * @return array
     */
    public function provides()
    {
        return array('laraHttp');
    }
}